package welsir.security;

import lombok.Data;

import java.io.Serializable;

/**
 * @author welsir
 * @date 2023/3/6 20:34
 */
@Data
public class AuthUser implements Serializable {
    private static final long serialVersionUID = 582441893336003319L;

    /**
     * 用户名
     */
    private String username;

    /**
     * id
     */
    private Integer id;

    /**
     * 是否是长登录
     */
    private Boolean longTerm;

    public AuthUser(String username, Integer id, Boolean longTerm) {
        this.username = username;
        this.id = id;
        this.longTerm = longTerm;
    }
}
